﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Monocle.DataModel;

namespace Monocle.Models
{
    public class PageItemCollectionViewModel : List<PageItemViewModel>
    {
        public PageItemCollectionViewModel(List<PageItemViewModel> pageList)
        {
            foreach (var item in pageList)
                this.Add(item);
        }

        public PageItemCollectionViewModel(List<tPageItem> pageList)
        {
            foreach (var item in pageList)
                this.Add(new PageItemViewModel(item));
        }
    }
}